package org.example.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author: luyg
 * @Date: 2024/11/11/9:27
 * @Description:
 */
public interface Transaction {
    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollBack() throws SQLException;

    void close() throws SQLException;

}
